﻿namespace NodeEditor
{
    public sealed class AttributeUtility
    {
        public static T GetAttribute<T>(System.Reflection.FieldInfo info)
        {
            var objs = info.GetCustomAttributes(typeof(T), false);
            if (objs.Length == 0)
                return default(T);
            return (T)objs[0];
        }
    }

}
